import Vue from 'vue'
/*global Vue*/
import Router from 'vue-router'
// import index from '../native/index.vue'
import index from '../native/index.vue'

import help from '../native/app/user/help/help.vue'
const Center = () => import('../native/app/main/center.vue')
const Web = () => import('../native/app/pay/web.vue')
const msgMsg = () => import('../native/app/msg/msg.vue')
const msgChat = () => import('../native/app/msg/chat.vue')
const Luck = () => import('../native/app/active/luck.vue')
const login = () => import('../native/app/login/login.vue')
const agreement = () => import('../native/app/login/agreement.vue')


const Goods = () => import('../native/app/goods/goods.vue')
const sold = () => import('../native/app/selling/sold.vue')
const Payment = () => import('../native/app/pay/payment.vue')
const Goods2 = () => import('../native/app/goods/goods2.vue')
const Success = () => import('../native/app/pay/success.vue')
const keep = () => import('../native/app/user/keep/keep.vue')
const myQR = () => import('../native/app/user/myQR/myQR.vue')
const Confirm = () => import('../native/app/order/confirm.vue')
const ratings = () => import('../native/app/goods/ratings.vue')
const secKill = () => import('../native/app/active/secKill.vue')
const bill = () => import('../native/app/user/balance/bill.vue')
const selling = () => import('../native/app/selling/selling.vue')
const sellList = () => import('../native/app/selling/sellList.vue')
const Cart = () => import('../native/app/main/cart.vue')


const invite = () => import('../native/app/invite/index.vue')
const qcode = () => import('../native/app/invite/qcode.vue')
const reveie = () => import('../native/app/invite/reveie.vue')
const userlist = () => import('../native/app/invite/userlist.vue')



const register = () => import('../native/app/login/register.vue')
const luckRule = () => import('../native/app/active/luckRule.vue')
const activeSearch = () => import('../native/app/active/activeSearch.vue')
const activeDetail = () => import('../native/app/goods/activeDetail.vue')



const selling2 = () => import('../native/app/selling/selling2.vue')
const bindPhone = () => import('../native/app/login/bindPhone.vue')
const coupon = () => import('../native/app/user/coupon/coupon.vue')
const luckPrize = () => import('../native/app/active/luckPrize.vue')
const searchKeep = () => import('../native/app/goods/searchKeep.vue')
const userCenter = () => import('../native/app/goods/userCenter.vue')
const question = () => import('../native/app/user/help/question.vue')
const sellPrice = () => import('../native/app/selling/sellPrice.vue')
const selectArea = () => import('../native/app/login/selectArea.vue')
const luckDetail = () => import('../native/app/active/luckDetail.vue')
const balance = () => import('../native/app/user/balance/balance.vue')
const account = () => import('../native/app/user/setting/account.vue')
const address = () => import('../native/app/user/address/address.vue')
const deposit = () => import('../native/app/user/deposit/deposit.vue')
const setting = () => import('../native/app/user/setting/setting.vue')
const SearchGoods = () => import('../native/app/goods/searchGoods.vue')
const refund = () => import('../native/app/user/order_list/refund.vue')
const resetpasswd = () => import('../native/app/login/resetpasswd.vue')
const vertifyCode = () => import('../native/app/login/vertifyCode.vue')
const addressedit = () => import('../native/app/user/address/edit.vue')
const changePh = () => import('../native/app/user/setting/changePh.vue')
const changePw = () => import('../native/app/user/setting/changePw.vue')
const Confirmation = () => import('../native/app/order/confirmation.vue')
const invoice = () => import('../native/app/user/order_list/invoice.vue')
const searchGoods2 = () => import('../native/app/goods/searchGoods2.vue')
const sold_detail = () => import('../native/app/selling/sold_detail.vue')
const preferential = () => import('../native/app/active/preferential.vue')
const changePh2 = () => import('../native/app/user/setting/changePh2.vue')
const changePh3 = () => import('../native/app/user/setting/changePh3.vue')
const changePw2 = () => import('../native/app/user/setting/changePw2.vue')
const changePw3 = () => import('../native/app/user/setting/changePw3.vue')
const changePw4 = () => import('../native/app/user/setting/changePw4.vue')
const searchCategroy = () => import('../native/app/goods/searchCategroy.vue')
const delivery = () => import('../native/app/user/order_list/delivery.vue')
const addressreturn = () => import('../native/app/user/address/return.vue')
const appointment = () => import('../native/app/user/appointment/index.vue')
const secKillDetail = () => import('../native/app/active/secKillDetail.vue')
const accountSet = () => import('../native/app/user/balance/accountSet.vue')
const drawResult = () => import('../native/app/user/balance/drawResult.vue')
const withdrawal = () => import('../native/app/user/balance/withdrawal.vue')
const refund_detail = () => import('../native/app/selling/refund_detail.vue')
const questionList = () => import('../native/app/user/help/questionList.vue')
const afterSale = () => import('../native/app/user/order_list/afterSale.vue')
const order_list = () => import('../native/app/user/order_list/order_list.vue')
const evaluation = () => import('../native/app/user/order_list/evaluation.vue')
const selling_detail = () => import('../native/app/selling/selling_detail.vue')
const refundDetail = () => import('../native/app/user/order_list/refundDetail.vue')
const order_details = () => import('../native/app/user/order_list/order_details.vue')
const selling_categories = () => import('../native/app/selling/selling_categories.vue')
const refund_confirm = () => import('../native/app/user/order_list/refund_confirm.vue')


Vue.use(Router)

module.exports = new Router({
  routes: [
    { path: '/', redirect: '/index.js' },
    { path: '/index.js', name: '首页', component: index },
    { path: '/app/msg/chat.js', name: '聊天', component: msgChat },
    { path: '/app/msg/msg.js', name: '信息', component: msgMsg },
    { path: '/app/selling/sold.js', name: '卖货', component: sold },
    { path: '/app/pay/success.js', name: '支付结果', component: Success },
    { path: "/app/login/login.js", name: '登录页面', component: login },
    { path: '/app/pay/payment.js', name: '支付页面', component: Payment },
    { path: '/app/pay/web.js', name: '支付页面2', component: Web },
    { path: '/app/main/center.js', name: '二手货', component: Center },
    { path: '/app/main/cart.js', name: '购物车', component: Cart },
    { path: "/app/active/luck.js", name: 'Luck', component: Luck },
    { path: "/app/goods/goods.js", name: 'Goods', component: Goods },
    { path: "/app/goods/goods2.js", name: '商品2页面', component: Goods2 },
    { path: "/app/goods/searchCategroy.js", name: '分类', component: searchCategroy },


    { path: "/app/order/confirm.js", name: '商品确认', component: Confirm },
    { path: '/app/goods/ratings.js', name: 'ratings', component: ratings },
    { path: '/app/active/secKill.js', name: 'secKill', component: secKill },
    { path: '/app/user/help/help.js', name: 'help', component: help },
    { path: '/app/user/keep/keep.js', name: 'keep', component: keep },
    { path: '/app/user/myQR/myQR.js', name: 'myQR', component: myQR },
    { path: '/app/login/register.js', name: 'register', component: register },
    { path: '/app/login/bindPhone.js', name: 'bindPhone', component: bindPhone },
    { path: '/app/selling/selling.js', name: 'selling', component: selling },
    { path: '/app/selling/sellList.js', name: 'sellList', component: sellList },
    { path: '/app/invite/index.js', name: 'invite', component: invite },
    { path: '/app/invite/qcode.js', name: 'qcode', component: qcode },
    { path: '/app/invite/reveie.js', name: 'reveie', component: reveie },
    { path: '/app/invite/userlist.js', name: 'userlist', component: userlist },





    { path: '/app/active/luckRule.js', name: 'luckRule', component: luckRule },
    { path: '/app/login/selectArea.js', name: 'selectArea', component: selectArea },
    { path: '/app/goods/searchKeep.js', name: 'searchKeep', component: searchKeep },
    { path: '/app/goods/userCenter.js', name: 'userCenter', component: userCenter },
    { path: '/app/active/luckPrize.js', name: 'luckPrize', component: luckPrize },
    { path: '/app/selling/selling2.js', name: 'selling2', component: selling2 },
    { path: '/app/selling/sellPrice.js', name: 'sellPrice', component: sellPrice },
    { path: "/app/goods/searchGoods.js", name: '搜索页面', component: SearchGoods },
    { path: '/app/login/resetpasswd.js', name: 'resetpasswd', component: resetpasswd },
    { path: '/app/login/vertifyCode.js', name: 'vertifyCode', component: vertifyCode },
    { path: '/app/active/luckDetail.js', name: 'luckDetail', component: luckDetail },
    { path: '/app/user/balance/bill.js', name: 'bill', component: bill },
    { path: '/app/user/address/edit.js', name: 'edit', component: addressedit },
    { path: '/app/user/coupon/coupon.js', name: 'coupon', component: coupon },
    { path: '/app/login/agreement.js', name: 'agreement', component: agreement },


    { path: '/app/user/help/question.js', name: 'question', component: question },
    { path: "/app/order/confirmation.js", name: '商品确认页面', component: Confirmation },
    { path: '/app/goods/searchGoods2.js', name: 'searchGoods2', component: searchGoods2 },
    { path: '/app/active/preferential.js', name: 'preferential', component: preferential },
    { path: '/app/user/address/return.js', name: 'return', component: addressreturn },
    { path: '/app/selling/sold_detail.js', name: 'sold_detail', component: sold_detail },
    { path: '/app/user/balance/balance.js', name: 'balance', component: balance },
    { path: '/app/user/setting/account.js', name: 'account', component: account },
    { path: '/app/user/deposit/deposit.js', name: 'deposit', component: deposit },
    { path: '/app/user/setting/setting.js', name: 'setting', component: setting },
    { path: '/app/user/address/address.js', name: 'address', component: address },
    { path: '/app/active/secKillDetail.js', name: 'secKillDetail', component: secKillDetail },
    { path: '/app/user/setting/changePw.js', name: 'changePw', component: changePw },
    { path: '/app/user/setting/changePh.js', name: 'changePh', component: changePh },
    { path: '/app/selling/refund_detail.js', name: 'refund_detail', component: refund_detail },
    { path: '/app/selling/selling_detail.js', name: 'selling_detail', component: selling_detail },
    { path: '/app/user/appointment/index.js', name: 'appointment', component: appointment },
    { path: '/app/user/help/questionList.js', name: 'questionList', component: questionList },
    { path: '/app/user/setting/changePh2.js', name: 'changePh2', component: changePh2 },
    { path: '/app/user/setting/changePh3.js', name: 'changePh3', component: changePh3 },
    { path: '/app/user/setting/changePw2.js', name: 'changePw2', component: changePw2 },
    { path: '/app/user/setting/changePw3.js', name: 'changePw3', component: changePw3 },
    { path: '/app/user/setting/changePw4.js', name: 'changePw4', component: changePw4 },
    { path: '/app/user/order_list/refund.js', name: 'refund', component: refund },
    { path: '/app/user/order_list/invoice.js', name: 'invoice', component: invoice },
    { path: '/app/user/balance/accountSet.js', name: 'accountSet', component: accountSet },
    { path: '/app/user/balance/drawResult.js', name: 'drawResult', component: drawResult },
    { path: '/app/user/balance/withdrawal.js', name: 'withdrawal', component: withdrawal },
    { path: '/app/user/order_list/delivery.js', name: 'delivery', component: delivery },
    { path: '/app/user/order_list/afterSale.js', name: 'afterSale', component: afterSale },
    { path: '/app/active/activeSearch.js', name: 'activeSearch', component: activeSearch },
    { path: '/app/goods/activeDetail.js', name: 'activeDetail', component: activeDetail },





    { path: "/app/user/order_list/order_list.js", name: '订单列表', component: order_list },
    { path: "/app/user/order_list/refundDetail.js", name: '退款详情', component: refundDetail },
    { path: '/app/user/order_list/evaluation.js', name: 'evaluation', component: evaluation },
    { path: '/app/selling/selling_categories.js', name: 'selling_categories', component: selling_categories },
    { path: '/app/user/order_list/order_details.js', name: 'order_details', component: order_details },
    { path: '/app/user/order_list/refund_confirm.js', name: 'refund_confirm', component: refund_confirm },




  ]
})
